package com.algorithms.absdatatypes;

public interface TreeTraversal
{
    public <K extends Comparable,T> void enumerateAll(TreeNode<K,T> treenode,Apply.TREE_TRAVERSAL traversal);
    
    /*
     * Find the item and return back the node
     */
    public <K extends Comparable,T> TreeNode<K,T> findItem(K key);
    
   /*
     * Find the root
     */
    public  <K extends Comparable,T> TreeNode<K,T> findRoot();
    

    /*
     * delete an item 
     */
    public <K extends Comparable> void deleteItem(K item);
    
}
